package com.module.wx.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.module.wx.mapper.ZzdOrderListMapper;
import com.module.wx.domain.ZzdOrderList;
import com.module.wx.service.IZzdOrderListService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author hezhengxian
 * @date 2023-02-10
 */
@Service
public class ZzdOrderListServiceImpl implements IZzdOrderListService 
{
    @Autowired
    private ZzdOrderListMapper zzdOrderListMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param orderNo 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public ZzdOrderList selectZzdOrderListByOrderNo(String orderNo)
    {
        return zzdOrderListMapper.selectZzdOrderListByOrderNo(orderNo);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param zzdOrderList 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ZzdOrderList> selectZzdOrderListList(ZzdOrderList zzdOrderList)
    {
        return zzdOrderListMapper.selectZzdOrderListList(zzdOrderList);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param zzdOrderList 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertZzdOrderList(ZzdOrderList zzdOrderList)
    {
        return zzdOrderListMapper.insertZzdOrderList(zzdOrderList);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param zzdOrderList 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateZzdOrderList(ZzdOrderList zzdOrderList)
    {
        return zzdOrderListMapper.updateZzdOrderList(zzdOrderList);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param orderNos 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteZzdOrderListByOrderNos(String[] orderNos)
    {
        return zzdOrderListMapper.deleteZzdOrderListByOrderNos(orderNos);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param orderNo 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteZzdOrderListByOrderNo(String orderNo)
    {
        return zzdOrderListMapper.deleteZzdOrderListByOrderNo(orderNo);
    }

    /**
     * 根据当前用户电话号码查询订单信息
     * @param userId
     * @return
     */
    public List<ZzdOrderList> selectOrderInfoByUserId(String userId){
        return zzdOrderListMapper.selectOrderInfoByUserId(userId);
    }
}
